home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15174 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ptolemy-ethernet.arc.nasa.gov!pjl
  2. From: pjl@ptolemy-ethernet.arc.nasa.gov (Paul J. Lucas)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Is it OK to delete const *type pointers?
  5. Date: 4 Apr 1996 01:17:39 GMT
  6. Organization: NASA Ames Research Center
  7. Message-ID: <4jv7vj$r6d@onramp.arc.nasa.gov>
  8. References: <4jhjub$fpc@mag1.magmacom.com>
  9. NNTP-Posting-Host: ptolemy-fddi1.arc.nasa.gov
  10. X-Newsreader: NN version 6.5.0 #11 (NOV)
  11.  
  12. In <4jhjub$fpc@mag1.magmacom.com> ezust@mag1.magmacom.com (Acme Instant Dehydrated Boulder Kit) writes:
  13.  
  14. >Some compilers let me do this, others do not. What I would like to know is,
  15. >what does Stroustrup think? I.e. is it written somewhere in the ARM (I checked
  16. >but can't find it) or in the draft standard? If somoene could e-mail me a
  17. >quote or a pointer to a place where I can read where it says such a thing
  18. >should or should not be allowed, I would appreciate it!
  19.  
  20.     ARM 5.3.4.
  21.  
  22.     You can't delete a pointer to const.  Period.  Any compiler
  23.     that lets you do so is broken.
  24.  
  25. >Is deleting an object technically considered changing that object's value?
  26.  
  27.     Yes: ARM 5.3.4.
  28.  
  29.     - Paul J. Lucas
  30.       NASA Ames Research Center        Caelum Research Corporation
  31.       Moffett Field, California        Mountain View, California
  32.